LassoScript Utility
Basics Browse Detail

[LDAP->Authenticate]

Tag Link [LDAP->Authenticate] Category LDAP
Type Member Source Available No
Support Preferred Version 8.5
Change New Data Source Any
Output Type None Security None
Implementation Internal Sets Lasso 8.5

Description

[LDAP->Authenticate] logs into the LDAP server. Requires a username and password.

Syntax

<?LassoScript
Var: 'myLDAP' = LDAP;
$myLDAP->(Open: 'ldap.example.com');
$myLDAP->(Authenticate: 'myusername', 'mysecretpassword');
Var: 'myResult' = $myLDAP->(Search: 'dc=example,dc=com';
LDAP_Scope_Subtree, '(objectClass=*)', (Array: '*'), False);
$myLDAP->Close;
?>

Parameters

Required Parameters
Username The username to authenticate against the LDAP server.
Password The password to authenticate against the LDAP server.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.